package com.adong.test;


import com.adong.service.UserService;
import org.junit.Test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @author com.adong
 */
public class demo {
    @Test
    public void show(){
        ApplicationContext app = new ClassPathXmlApplicationContext("bean.xml");
        UserService userService = app.getBean("userService", UserService.class);
        userService.accountMoney();
    }
}



